.box {
  height: 100%;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.title {
  position: absolute;
  top: 13%;
  color: #fff;
  text-align: center;
  font-weight: 300;
  font-size: 0.625rem;
  letter-spacing: 0.125rem;
  background: linear-gradient(white, #38495a);
  background-clip: text;
  color: transparent;
  width: 100%;
}

@function createShadow($n) {
  $shadow: '#{random(100)}vw #{random(100)}vh white';
  @for $i from 2 through $n {
    $shadow: '#{$shadow}, #{random(100)}vw #{random(100)}vh white';
  }
  @return unquote($shadow);
}

@keyframes moveDown {
  100% {
    transform: translateY(100vh);
  }
}

$count: 1000;
$duration: 400s;
@for $i from 1 through 3 {
  $count: floor($count / 2);
  $duration: floor($duration / 2);
  .layer#{$i} {
    $size: #{$i}px;
    position: fixed;
    width: $size;
    height: $size;
    border-radius: 50%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: createShadow($count);
    animation: moveDown $duration linear infinite;

    &::before {
      content: '';
      position: fixed;
      left: 0;
      top: -100vh;
      width: inherit;
      height: inherit;
      border-radius: inherit;
      box-shadow: inherit;
    }
  }
}
